/*******************************************************************************
 * Copyright (c) 2011, 2012 EclipseSource and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    EclipseSource - initial API and implementation
 ******************************************************************************/
package it.rap.applications.pages.internal;

import it.rap.applications.contributions.manager.Contributions;
import it.rap.applications.pages.examples.ButtonExamplePage;
import it.rap.applications.pages.examples.CanvasExamplePage;
import it.rap.applications.pages.examples.DialogExamplePage;
import it.rap.applications.pages.examples.FillLayoutExample;
import it.rap.applications.pages.examples.GridLayoutExample;
import it.rap.applications.pages.examples.InternationalizationExamplePage;
import it.rap.applications.pages.examples.ListExample;
import it.rap.applications.pages.examples.MarkupExample;
import it.rap.applications.pages.examples.MarkupLabelExample;
import it.rap.applications.pages.examples.RowLayoutExample;
import it.rap.applications.pages.examples.RowTemplateExample;
import it.rap.applications.pages.examples.TableViewerExample;
import it.rap.applications.pages.examples.TextInputExamplePage;
import it.rap.applications.pages.examples.TreeViewerExample;
import it.rap.applications.pages.examples.ValidationExamplePage;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class CustomActivator implements BundleActivator {

  public static final String BUNDLE_ID = "it.rap.applications.pages";
 
  public CustomActivator() {
  }

  public void start( BundleContext context ) throws Exception {
	  Contributions.addContribution("button", "Buttons", ButtonExamplePage.class );
	  Contributions.addContribution("rich-label", "Markup Support", MarkupLabelExample.class );
	  Contributions.addContribution("input", "Input Widgets", TextInputExamplePage.class );
	  Contributions.addContribution("dialog", "Dialogs", DialogExamplePage.class );
	  Contributions.addContribution("drag-and-drop", "Drag & Drop", ListExample.class );
	  Contributions.addContribution("treeviewer", "TreeViewer", TreeViewerExample.class );
	  Contributions.addContribution("tableviewer", "TableViewer", TableViewerExample.class );
	  Contributions.addContribution("canvas", "Canvas", CanvasExamplePage.class );
	  Contributions.addContribution("row-layout", "Row Layout", RowLayoutExample.class );
	  Contributions.addContribution("fill-layout", "Fill Layout", FillLayoutExample.class );
	  Contributions.addContribution("grid-layout", "Grid Layout", GridLayoutExample.class );
	  Contributions.addContribution("table-markup", "Table with Markup", MarkupExample.class );
	  Contributions.addContribution("table-template", "Table with RowTemplate", RowTemplateExample.class );
	  Contributions.addContribution("nls", "Internationalization", InternationalizationExamplePage.class );
	  Contributions.addContribution("validation", "Input Validation", ValidationExamplePage.class );
	  //Contributions.addContribution("movimenti", "Gestione movimenti", CercaMovimentiPage.class );
	  //Contributions.addContribution("filters", "Gestione filtri", FilterManagerPageNew.class );
	  //Contributions.addContribution("report", "My report", ReportManagerPage.class );
	  //Contributions.addContribution("Property-manager", "Property manager", PropertyManagerPage.class );
  }

  public void stop( BundleContext context ) throws Exception {
   
  }
}
